* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

.container {
    padding: 20px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
}

.stat-card h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
}

.stat-card .number {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.chart-box {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
    height: 400px;
}

.bottom-charts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.title {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 200px;
    background-color: #304156;
    color: #fff;
    padding: 20px 0;
}

.logo {
    padding: 0 20px;
    height: 50px;
    line-height: 50px;
    font-size: 18px;
    color: #fff;
    border-bottom: 1px solid #1f2d3d;
    margin-bottom: 20px;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    position: relative;
    padding: 14px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-item-left {
    display: flex;
    align-items: center;
}

.nav-item i {
    margin-right: 10px;
    font-size: 16px;
}

.nav-item span {
    font-size: 14px;
}

.sub-menu {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-out;
    background-color: #1f2d3d;
}

.sub-menu.open {
    height: auto;
}

.sub-menu-item {
    padding: 12px 20px 12px 44px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-item:hover, .sub-menu-item:hover {
    background-color: #263445;
}

.nav-item.active, .sub-menu-item.active {
    background-color: #263445;
    color: #409EFF;
}

.main-container {
    flex: 1;
    padding: 20px;
    background-color: #f0f2f5;
}

/* 添加页面内容样式 */
.page-content {
    display: none;
    padding: 20px;
}

.page-content.active {
    display: block;
}

.page-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h2 {
    font-size: 20px;
    color: #333;
}

.page-body {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
}

/* 表单样式 */
.el-form {
    max-width: 600px;
}

.form-item {
    margin-bottom: 20px;
}

.form-item label {
    display: block;
    margin-bottom: 8px;
    color: #606266;
}

.el-input {
    width: 100%;
    height: 40px;
    line-height: 40px;
    padding: 0 15px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
}

.el-select {
    width: 100%;
    height: 40px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    padding: 0 15px;
}

.el-button {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.el-button.primary {
    background-color: #409EFF;
    color: #fff;
}

.el-button.small {
    padding: 8px 15px;
    font-size: 12px;
}

/* 表格样式 */
.el-table {
    width: 100%;
    border-collapse: collapse;
}

.el-table th,
.el-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #ebeef5;
    text-align: left;
}

.el-table th {
    background-color: #f5f7fa;
    color: #606266;
}

.search-bar {
    display: flex;
    gap: 10px;
}

.search-bar .el-input {
    width: 300px;
}

/* 添加工单紧急程度样式 */
.urgency-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
}

.urgency-high {
    background-color: #F56C6C;
    color: #fff;
}

.urgency-medium {
    background-color: #E6A23C;
    color: #fff;
}

.urgency-low {
    background-color: #67C23A;
    color: #fff;
}

/* 工单列表中的紧急程度行样式 */
.el-table tr.urgency-high {
    background-color: rgba(245, 108, 108, 0.1);
}

.el-table tr.urgency-medium {
    background-color: rgba(230, 162, 60, 0.1);
}

.el-table tr.urgency-low {
    background-color: rgba(103, 194, 58, 0.1);
}

/* 工单卡片中的紧急程度样式 */
.work-order-card {
    position: relative;
    padding-left: 4px;
    border-left-width: 4px;
    border-left-style: solid;
}

.work-order-card.urgency-high {
    border-left-color: #F56C6C;
}

.work-order-card.urgency-medium {
    border-left-color: #E6A23C;
}

.work-order-card.urgency-low {
    border-left-color: #67C23A;
} 